package com.asset.dispoal.defaultRoleDepartment.service.commom;

import com.asset.dispoal.defaultRoleDepartment.domain.db.mapper.GbDefaultRoleDepartmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tech.mhuang.pacebox.core.ddd.BaseCommand;
import tech.mhuang.pacebox.springboot.protocol.Result;

/**
 * @author qr
 * @date 2022/3/21$
 */
@Component
public class GbDefaultRoleDepartmentDelete implements BaseCommand<String, Result> {


    @Autowired
    GbDefaultRoleDepartmentMapper gbDefaultRoleDepartmentMapper;

    @Override
    public Result execute(String s) {
        gbDefaultRoleDepartmentMapper.delete(s);
        return Result.ok();
    }
}
